#ifndef HAL_IIC_H
#define HAL_IIC_H
#include "log.h"
#include <errno.h>
error_t hal_iic_init(int iic_id, int baud);
error_t hal_iic_write_nbytes_to_device_reg(int iic_id, uint16_t dev_addr, uint8_t* reg_addr, uint8_t reg_addr_len, uint8_t* tx_data, uint8_t tx_len);
error_t hal_iic_read_nbytes_form_reg(int iic_id, uint16_t dev_addr, uint8_t* reg_addr, uint8_t reg_addr_len, uint8_t* rx_data, uint8_t rx_max_len);
#endif
